﻿using DataTransfer.SDK.Models;
using NPOI.SS.UserModel;
using System.Data;

namespace DataTransfer.SDK.Events
{
    /// <summary>
    /// 
    /// </summary>
    public class ExportExcelEventArgs : EventArgs
    {
        IExcelExporter _excelExporter;
        IWorkbook _workbook;
        DataSet _dataSet;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="exporter"></param>
        /// <param name="workbook"></param>
        /// <param name="dataSet"></param>
        public ExportExcelEventArgs(IExcelExporter exporter, IWorkbook workbook, DataSet dataSet)
        {
            _excelExporter = exporter;
            _dataSet = dataSet;
            this._workbook = workbook;
        }

        /// <summary>
        /// 
        /// </summary>
        public IExcelExporter Exporter
        {
            get { return _excelExporter; }
        }

        /// <summary>
        /// 
        /// </summary>
        public DataSet DataSet
        {
            get { return _dataSet; }
        }

        /// <summary>
        /// 
        /// </summary>
        public IWorkbook Workbook
        {
            get { return _workbook; }
        }
    }

}
